home *** CD-ROM | disk | FTP | other *** search
/ Digitalfoto 118 / Digitalfoto 118.iso / mac / webs.swf / scripts / frame_2 / PlaceObject2_154_32 / CLIPACTIONRECORD onClipEvent(load).as
Text File  |  2007-09-27  |  967b  |  38 lines

  1. onClipEvent(load){
  2.    var s = this.mov_thumb;
  3.    var f = _parent.mov_frame_01;
  4.    var t = _parent.txt_display;
  5.    init = function()
  6.    {
  7.       with(f)
  8.       {
  9.          _x = t._x + 15;
  10.          _y = t._y + 8;
  11.          _height = t._height;
  12.          _width = t._width + 4;
  13.       }
  14.       with(this)
  15.       {
  16.          s._height = f._height / 7;
  17.          _y = f._y + 12;
  18.          _x = f._x + f._width + 6;
  19.          mov_track._height = btn_bg._height = f._height - 24;
  20.          s.int_min = s._y;
  21.          s.int_max = Math.ceil(mov_track._height - s._height);
  22.       }
  23.       this.int_scrollDist = Math.ceil(this.mov_track._height - s._height);
  24.    };
  25.    this.btn_bg.onPress = function()
  26.    {
  27.       boo_scrollClk = 1;
  28.    };
  29.    this.btn_bg.onRelease = this.btn_bg.onReleaseOutside = function()
  30.    {
  31.       boo_scrollClk = 0;
  32.    };
  33.    this.onEnterFrame = function()
  34.    {
  35.       t.scroll = Math.round(s._y / int_scrollDist * t.maxscroll);
  36.    };
  37. }
  38.